/*详情页面
* 跳转展示用
* */
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class XQPageDemo extends StatelessWidget {

  final String title;
  final String text;

  XQPageDemo(this.title, this.text);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text(title),
          centerTitle: true,
        ),
        body: Container(
          padding: EdgeInsets.symmetric(vertical: 10, horizontal: 10),
          child: Column(
            children: <Widget>[
              Text(
                '内容:$text',
                style: TextStyle(fontSize: 20, color: Colors.black),
              ),
              Text('出栈操作：', style: TextStyle(fontSize: 20,color: Colors.black),),
              FlatButton(
                  onPressed: () => {_navigatorPopPage1(context)},
                  child: Text('点击返回',style: TextStyle(fontSize: 20,color: Colors.blue),))
            ],
          ),
        ));
  }
}


/**
 * 出栈操作（退出页面）
 */
_navigatorPopPage1(BuildContext context) {
  Navigator.pop(context);
}

